import request from "@/utils/request.js";

/**
 * 我的宝物
 * 
 */
export function getTreasureList(data) {
	return request.get("mcda/treasure/list", data);
}
/**
 * 预约鉴宝
 * 
 */
export function judgeAppointment(data) {
	return request.post("mcda/judge/appointment", data);
}
/**
 * 我的鉴宝预约
 * 
 */
export function judgeList(data) {
	return request.get("mcda/judge/list", data);
}
/**
 * 我的过户预约
 * 
 */
export function transList(data) {
	return request.get("mcda/transfer/list", data);
}
/**
 * 取消鉴宝预约 
 * 
 */
export function cancelJudge(data) {
	return request.post("mcda/judge/cancel", data);
}
/**
 * 预约过户 
 * 
 */
export function transferAppointment(data) {
	return request.post("mcda/transfer/appointment", data);
}

/**
 * 取消过户预约 
 * 
 */
export function cancelTransfer(data) {
	return request.post("mcda/transfer/cancel", data);
}
/**
 * 藏友晒宝
 * 
 */
export function trendTreasure(data) {
	return request.get("mcda/trends/treasure", data);
}
/**
 * 我要晒宝
 * 
 */
export function trendsPublishTreasure(data) {
	return request.post("mcda/trends/publish_treasure", data);
}
/**
 * 礼品卡列表
 * 
 */
export function getCardList(data) {
	return request.get("mcda/card/list", data);
}
/**
 * 点赞与取消点赞
 * 
 */
export function trendsPraise(data) {
	return request.post("mcda/trends/praise", data);
}
/**
 * 收藏与取消收藏
 * 
 */
export function trendsCollect(data) {
	return request.post("mcda/trends/collect", data);
}
/**
 * 评价
 * 
 */
export function trendsComment(data) {
	return request.post("mcda/trends/comment", data);
}
/**
 * 评价列表
 * 
 */
export function trendsCommentList(data) {
	return request.get("mcda/trends/comment", data);
}
/**
 * 晒宝详情
 * 
 */
export function trendsDetail(data) {
	return request.get("mcda/trends/detail", data);
}
/**
 * 结算预览
 * 
 */
export function cardOrderPreview(data) {
	return request.post("mcda/card/order_preview", data);
}
/**
 * 创建订单
 * 
 */
export function cardOrder(data) {
	return request.post("mcda/card/order", data);
}
/**
 * 创建订单
 * 
 */
export function cardPay(data) {
	return request.post("mcda/card/pay", data);
}
/**
 * 热门资讯列表
 * 
 */
export function articleList(data) {
	return request.get("mcda/article/list", data);
}

/**
 * 资讯点赞与取消点赞
 * 
 */
export function articlePraise(data) {
	return request.post("mcda/article/praise", data);
}
/**
 * 资讯收藏与取消收藏
 * 
 */
export function articleCollect(data) {
	return request.post("mcda/article/collect", data);
}
/**
 * 资讯评价
 * 
 */
export function articleComment(data) {
	return request.post("mcda/article/comment", data);
}
/**
 * 资讯评价列表
 * 
 */
export function articleCommentList(data) {
	return request.get("mcda/article/comment", data);
}
/**
 * 资讯分享
 * 
 */
export function articleShare(data) {
	return request.post("mcda/article/share", data);
}
/**
 * 晒宝分享
 * 
 */
export function trendsShare(data) {
	return request.post("mcda/trends/share", data);
}
/**
 * 首页藏宝推荐
 * 
 */
export function getProductHot(data) {
	return request.get("product/hot", data,{noAuth:true});
}
/**
 * 首页精藏宝库
 * 
 */
export function getProductHot2(data) {
	return request.get("product/transfer", data,{noAuth:true});
}
/**
 * 首页banner
 * 
 */
export function getGroomList1(data) {
	return request.get("groom/list/1", data,{noAuth:true});
}
/**
 * 首页热门动态
 * 
 */
export function getHomeHotNews(data) {
	return request.get("mcda/index/hot_news", data,{noAuth:true});
}
/**
 * 资讯详情
 * 
 */
export function getArticleDetail(data) {
	return request.get("mcda/article/detail", data);
}
/**
 * 我的晒宝收藏
 * 
 */
export function getTrendsCollection(data) {
	return request.get("mcda/trends/collection", data);
}

/**
 * 我的资讯收藏
 * 
 */
export function getArticleCollection(data) {
	return request.get("mcda/article/collection", data);
}
/**
 * 我的礼品卡
 * 
 */
export function getUserGiftCard(data) {
	return request.get("mcda/user/gift_card", data);
}
/**
 * 绑定礼品卡
 * 
 */
export function bindCard(data) {
	return request.post("mcda/card/bind", data);
}
/**
 * 绑定礼品卡
 * 
 */
export function getSettleCardList(data) {
	return request.get("mcda/settle/card_list", data);
}
/**
 * 扫码结果页
 * 
 */
export function getTreasureDetail(data) {
	return request.get("mcda/treasure/detail", data);
}
/**
 * 公司介绍
 * 
 */
export function getCompanyIntroduction(data) {
	return request.get("mcda/company/introduction", data);
}
/**
 * 公司介绍
 * 
 */
export function getAboutUs(data) {
	return request.get("mcda/about/us", data); 
}
/**
 * 我要备案
 * @param {Object} data
 */
export function appointmentAPI(data) {
	return request.post('mcda/judge/appointment', data);
}
/**
 * 前端 :  user/record/index 获取备案说明和金额
 * 
 */
export function getbeanAPI(data) {
	return request.get("user/record/index", data); 
}
// 新增 appointment/pay  参数 order_sn ,from 
export function paybeianAPI(data) {
	return request.post('mcda/appointment/pay', data);
}

export function getbeiancouponsAPI(data) {
	return request.get("beiancoupons/user/1", data); 
}




























